<?php
// Define path to application directory
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/'));

// Define path to application directory
define('HTTP_HOST', $_SERVER['HTTP_HOST']);
    
// Define application environment
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

    
    
// Verzeichnisse für dem include_path definieren
$paths = array(
	get_include_path(),
    APPLICATION_PATH . '/application',
    '.'
);

// System konfigurieren
ini_set('include_path', implode(PATH_SEPARATOR, $paths));



// Error Reporting aktivieren, auf dem Produktionsserver sollten niemals 
// Fehler ausgegeben werden
error_reporting(E_ALL | E_STRICT);


//Zeitzone setzen
date_default_timezone_set("Europe/Berlin");

/** Zend_Application */
require_once 'Zend/Application.php';

// Create application, bootstrap, and run
$application = new Zend_Application(
    APPLICATION_ENV,
    APPLICATION_PATH . '/configs/system/system.ini'
);
$application->bootstrap()
            ->run();
